Integrand size = 24, antiderivative size = 82 \[ \int \frac {x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx=-\frac {\sqrt {a} \arctan \left (\frac {\sqrt {b c-a d} x}{\sqrt {a} \sqrt {c+d x^2}}\right )}{b \sqrt {b c-a d}}+\frac {\text {arctanh}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{b \sqrt {d}} \]
[Out]
Time = 0.03 (sec) , antiderivative size = 82, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {494, 223, 212, 385, 211} \[ \int \frac {x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx=\frac {\text {arctanh}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{b \sqrt {d}}-\frac {\sqrt {a} \arctan \left (\frac {x \sqrt {b c-a d}}{\sqrt {a} \sqrt {c+d x^2}}\right )}{b \sqrt {b c-a d}} \]
[In]
[Out]
Rule 211
Rule 212
Rule 223
Rule 385
Rule 494
Rubi steps \begin{align*} \text {integral}& = \frac {\int \frac {1}{\sqrt {c+d x^2}} \, dx}{b}-\frac {a \int \frac {1}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx}{b} \\ & = \frac {\text {Subst}\left (\int \frac {1}{1-d x^2} \, dx,x,\frac {x}{\sqrt {c+d x^2}}\right )}{b}-\frac {a \text {Subst}\left (\int \frac {1}{a-(-b c+a d) x^2} \, dx,x,\frac {x}{\sqrt {c+d x^2}}\right )}{b} \\ & = -\frac {\sqrt {a} \tan ^{-1}\left (\frac {\sqrt {b c-a d} x}{\sqrt {a} \sqrt {c+d x^2}}\right )}{b \sqrt {b c-a d}}+\frac {\tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{b \sqrt {d}} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(342\) vs. \(2(82)=164\).
Time = 1.22 (sec) , antiderivative size = 342, normalized size of antiderivative = 4.17 \[ \int \frac {x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx=\frac {\left (-b c+a d+\sqrt {b} \sqrt {c} \sqrt {b c-a d}\right ) \sqrt {2 b c-a d+2 \sqrt {b} \sqrt {c} \sqrt {b c-a d}} \arctan \left (\frac {\sqrt {2 b c-a d+2 \sqrt {b} \sqrt {c} \sqrt {b c-a d}} x}{\sqrt {a} \left (\sqrt {c}-\sqrt {c+d x^2}\right )}\right )+\sqrt {2 b c-a d-2 \sqrt {b} \sqrt {c} \sqrt {b c-a d}} \left (b c-a d+\sqrt {b} \sqrt {c} \sqrt {b c-a d}\right ) \arctan \left (\frac {\sqrt {2 b c-a d-2 \sqrt {b} \sqrt {c} \sqrt {b c-a d}} x}{\sqrt {a} \left (-\sqrt {c}+\sqrt {c+d x^2}\right )}\right )+2 \sqrt {a} \sqrt {d} (b c-a d) \text {arctanh}\left (\frac {\sqrt {d} x}{-\sqrt {c}+\sqrt {c+d x^2}}\right )}{\sqrt {a} b d (b c-a d)} \]
[In]
[Out]
Time = 2.95 (sec) , antiderivative size = 84, normalized size of antiderivative = 1.02
method | result | size |
pseudoelliptic | \(\frac {-a \,\operatorname {arctanh}\left (\frac {\sqrt {d \,x^{2}+c}\, a}{x \sqrt {\left (a d -b c \right ) a}}\right ) \sqrt {d}+\operatorname {arctanh}\left (\frac {\sqrt {d \,x^{2}+c}}{x \sqrt {d}}\right ) \sqrt {\left (a d -b c \right ) a}}{b \sqrt {d}\, \sqrt {\left (a d -b c \right ) a}}\) | \(84\) |
default | \(\frac {\ln \left (x \sqrt {d}+\sqrt {d \,x^{2}+c}\right )}{b \sqrt {d}}+\frac {a \ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x -\frac {\sqrt {-a b}}{b}\right )^{2}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x -\frac {\sqrt {-a b}}{b}}\right )}{2 \sqrt {-a b}\, b \sqrt {-\frac {a d -b c}{b}}}-\frac {a \ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x +\frac {\sqrt {-a b}}{b}\right )^{2}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x +\frac {\sqrt {-a b}}{b}}\right )}{2 \sqrt {-a b}\, b \sqrt {-\frac {a d -b c}{b}}}\) | \(337\) |
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 616, normalized size of antiderivative = 7.51 \[ \int \frac {x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx=\left [\frac {d \sqrt {-\frac {a}{b c - a d}} \log \left (\frac {{\left (b^{2} c^{2} - 8 \, a b c d + 8 \, a^{2} d^{2}\right )} x^{4} + a^{2} c^{2} - 2 \, {\left (3 \, a b c^{2} - 4 \, a^{2} c d\right )} x^{2} - 4 \, {\left ({\left (b^{2} c^{2} - 3 \, a b c d + 2 \, a^{2} d^{2}\right )} x^{3} - {\left (a b c^{2} - a^{2} c d\right )} x\right )} \sqrt {d x^{2} + c} \sqrt {-\frac {a}{b c - a d}}}{b^{2} x^{4} + 2 \, a b x^{2} + a^{2}}\right ) + 2 \, \sqrt {d} \log \left (-2 \, d x^{2} - 2 \, \sqrt {d x^{2} + c} \sqrt {d} x - c\right )}{4 \, b d}, \frac {d \sqrt {-\frac {a}{b c - a d}} \log \left (\frac {{\left (b^{2} c^{2} - 8 \, a b c d + 8 \, a^{2} d^{2}\right )} x^{4} + a^{2} c^{2} - 2 \, {\left (3 \, a b c^{2} - 4 \, a^{2} c d\right )} x^{2} - 4 \, {\left ({\left (b^{2} c^{2} - 3 \, a b c d + 2 \, a^{2} d^{2}\right )} x^{3} - {\left (a b c^{2} - a^{2} c d\right )} x\right )} \sqrt {d x^{2} + c} \sqrt {-\frac {a}{b c - a d}}}{b^{2} x^{4} + 2 \, a b x^{2} + a^{2}}\right ) - 4 \, \sqrt {-d} \arctan \left (\frac {\sqrt {-d} x}{\sqrt {d x^{2} + c}}\right )}{4 \, b d}, \frac {d \sqrt {\frac {a}{b c - a d}} \arctan \left (-\frac {{\left ({\left (b c - 2 \, a d\right )} x^{2} - a c\right )} \sqrt {d x^{2} + c} \sqrt {\frac {a}{b c - a d}}}{2 \, {\left (a d x^{3} + a c x\right )}}\right ) + \sqrt {d} \log \left (-2 \, d x^{2} - 2 \, \sqrt {d x^{2} + c} \sqrt {d} x - c\right )}{2 \, b d}, \frac {d \sqrt {\frac {a}{b c - a d}} \arctan \left (-\frac {{\left ({\left (b c - 2 \, a d\right )} x^{2} - a c\right )} \sqrt {d x^{2} + c} \sqrt {\frac {a}{b c - a d}}}{2 \, {\left (a d x^{3} + a c x\right )}}\right ) - 2 \, \sqrt {-d} \arctan \left (\frac {\sqrt {-d} x}{\sqrt {d x^{2} + c}}\right )}{2 \, b d}\right ] \]
[In]
[Out]
\[ \int \frac {x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx=\int \frac {x^{2}}{\left (a + b x^{2}\right ) \sqrt {c + d x^{2}}}\, dx \]
[In]
[Out]
\[ \int \frac {x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx=\int { \frac {x^{2}}{{\left (b x^{2} + a\right )} \sqrt {d x^{2} + c}} \,d x } \]
[In]
[Out]
Exception generated. \[ \int \frac {x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Timed out. \[ \int \frac {x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx=\int \frac {x^2}{\left (b\,x^2+a\right )\,\sqrt {d\,x^2+c}} \,d x \]
[In]
[Out]